<?
include_once("curl_lib.php");
include_once("xmlParser.php");

//RETIRAR
$_SESSION["CPF"] = 0;

if(isset($_SESSION["CPF"])){
    $dadosClienteUrl = "http://mc747-clientes.heroku.com/clientes/" . $_SESSION["CPF"] . ".xml";

    $contents = get_data($dadosClienteUrl);

    $domObj = new xmlToArrayParser($contents);
    $domArr = $domObj->array;

    print_r($domArr);

}

?>
